import request from '@/utils/request'

// 查询结算子表列表
export function listRentClearD(query) {
  return request({
    url: '/rent/rentClearD/list',
    method: 'get',
    params: query
  })
}

// 查询结算子表详细
export function getRentClearD(id) {
  return request({
    url: '/rent/rentClearD/' + id,
    method: 'get'
  })
}

// 新增结算子表
export function addRentClearD(data) {
  return request({
    url: '/rent/rentClearD',
    method: 'post',
    data: data
  })
}

// 修改结算子表
export function updateRentClearD(data) {
  return request({
    url: '/rent/rentClearD',
    method: 'put',
    data: data
  })
}

// 删除结算子表
export function delRentClearD(id) {
  return request({
    url: '/rent/rentClearD/' + id,
    method: 'delete'
  })
}
